package org.microservice.system.service;

import com.baomidou.mybatisplus.service.IService;
import org.microservice.common.bean.DepartmentVo;
import org.microservice.common.util.R;
import org.microservice.system.utils.dto.DepartmentTree;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: 齐丹枫
 * Date: 2018/7/11
 * Time: 16:06
 * To change this template use File | Settings | File Templates.
 * Description:
 */
public interface DepartmentService extends IService<DepartmentVo>{
    List<DepartmentTree> getDepartmentListPage(Map<String, Object> params);

    R save(DepartmentVo departmentVo);

    R update(DepartmentVo departmentVo);

    List<DepartmentVo> getChildrenDepartmentByparentId(int parentId);

    DepartmentVo getDepartmentInfoById(Serializable id);

    void disabledOrEnabledById(int id, boolean disabled);
}
